const Vue = require('vue')
const renderer = require('vue-server-renderer').createRenderer()
const app = new Vue({
    template: `
    <div>
        <h1>{{msg}}</h1>
    </div>
    `,
    data() {
        return {
            msg: '牛批',
        }
    },
})

renderer.renderToString(app, (err, html) => {
    if (err) throw err
    console.log(html)
})
